package me.zhengjie.utils;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

public class FailHandle implements JavaDelegate {
    @Override
    public void execute(DelegateExecution delegateExecution) {
        String name = delegateExecution.getVariable("name").toString();
        String rejectReason = delegateExecution.getVariable("rejectReason").toString();
        System.out.println(name+"你的申请被驳回了,原因是："+rejectReason);
    }
}

